import handleStateMent from './handleStateMent.js'
export default (listData, styleLink) => {
	if(!styleLink){
		styleLink = []
	}
	return listData.filter(obj => {
		var flag = styleLink.some(link => {
			var result = handleStateMent(link.stateMent, obj, 'list')
			if (result) {
				obj.styleLink = link.style
				return true
			}
		})
		return flag
	})
}
